<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fnx" uri="http://java.sun.com/jsp/jstl/functionsx"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="f" uri="http://www.sctv.com/tags/form"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<!DOCTYPE html>
<html>
<head>
    <link type="text/css" href="${ctx}/config/css/preview-style.css">
    <link type="text/css" href="${ctx}/config/css/editor-style.css">
<jsp:include page="/WEB-INF/views/head.jsp"/>
<style>
.tabs{}
.tabs li{float:left;background-color:#f4f4f4;border-left:1px solid #e2e2e2;border-top:1px solid #ddd;border-right:1px solid #ddd;margin-right:0px;}
.tabs li a{color:#555555;float:left;text-decoration:none;padding:5px 12px;}
.tabs li a:link,.tabs li a:visited,.tabs li a:hover,.tabs li a:active{text-decoration:none;}
.tabs li.active{background-color:#FFFFFF;border-left:1px solid #ddd;border-top:1px solid #ddd;border-right:1px solid #ddd;}
.tabs li.active a{color:#fff;background:#ed5565;border-color:#ed5565;}
.tabs li.hover{background-color:#e7e7e7;border-left:1px solid #ddd;border-top:1px solid #ddd;border-right:1px solid #ddd;}
.tabs li.hover a{color:#000;}
</style>
<script>
$(function() {
	$("#radio").buttonset();
	$("#sortHead").headSort();
	$("#tabs li").each(function(){
		$(this).hover(function(){
			if(!$(this).hasClass("active")) {
				$(this).addClass("hover");
			}
		},function(){
			$(this).removeClass("hover");
		});
	});

});
function confirmDelete() {
	return confirm("<s:message code='confirmDelete'/>");
}
function optSingle(opt) {
	if(Cms.checkeds("ids")==0) {
		alert("<s:message code='pleaseSelectRecord'/>");
		return false;
	}
	if(Cms.checkeds("ids")>1) {
		alert("<s:message code='pleaseSelectOne'/>");
		return false;
	}
	var id = $("input[name='ids']:checkbox:checked").val();
	var url = $(opt+id).attr("href");
	if(url) {
		location.href=$(opt+id).attr("href");
	} else {
		alert("<s:message code='noPermission'/>");
	}
}
function optMulti(form, action, confirmMsg) {
	if(Cms.checkeds("ids")==0) {
		alert("<s:message code='pleaseSelectRecord'/>");
		return false;
	}
	if(confirmMsg) {
		if($.isFunction(confirmMsg)) {
			if(!confirmMsg()) {
				return false;
			}
		} else {
			if(!confirm(confirmMsg)) {
				return false;
			}
		}
	}
	form.action=action;
//    if(action=='infoaudit_pass.do'){
//      var isPubCity=$("#isPubCity").val();
//      if(isPubCity=='0'){
//        if (confirm("确认审核通过 并 发布到直播盐都市州圈？")==true){
//          $("#pubCityNode").val(0);
//        }
//      }
//    }
	form.submit();
	return true;
}
function optDelete(form,action) {
	optMulti(form,"infodelete.do",confirmDelete);
}
function  pubCity(form,action) {
  if(Cms.checkeds("ids")==0) {
    alert("<s:message code='pleaseSelectRecord'/>");
    return false;
  }
  form.action=action;
  if(action=='infoaudit_pass.do'){
    var isPubCity=$("#isPubCity").val();
    if(isPubCity=='0'){
      if (confirm("确认审核通过并发布到[直播盐都市州圈]？")==true){
        $("#pubCityNode").val(0);
        form.submit();
      }
    }else{
      alert("发布失败，当前地市州没有设置发布市州圈！");
    }
  }

}

function  updatePriority(infoId) {
  if (infoId == '' || infoId == null) {
    return false;
  }
  var priority = $("#" + infoId).val();
  var r = new RegExp("^(\\d|[1-9]\\d|100)$");　　//0-100整数
  if (!r.test(priority)) {
    alert("请输入数字0~100（整数）！");
    return false;
  }
  var data = {};
  data.infoId = infoId;
  data.priority = priority;
  var url = CMSCP + '/core/pub_center/updatePriority.do';
  $.ajax({
    type: "POST",
    url: url,
    dataType: "json",
    data: data,
    async: false,
    success: function (msg) {
      if (msg.msg == 'success') {
        alert('修改成功！');
      } else {
        alert('参数错误，请刷新重试！');
      }

    },
    error: function (msg) {
      alert("系统异常！");
    }
  });
}
function  updatePubTime(infoId) {
  if (infoId == '' || infoId == null) {
    return false;
  }
  var pubTime=$("#pubTime_"+infoId).val();
  location.href = 'updatePubTime.do?queryNodeId=${queryNodeId}&infoId='+infoId+'&pubTime='+pubTime;
}
</script>
</head>
<body class="skin-blue content-body" id="load">
<div class="preview-layer" style="display: none;">
    <div class="preview-bg"></div>
    <div class="preview-phone" style="left: 530.5px;">
        <iframe id="preview-html" name="preview-html" src="${ctx}/config/preview-h5.html"></iframe>
    </div>
</div>
<script>
  var css_str = {};
  var pre_phone = $(".preview-phone");
  var pos_left = 0;
  var pos_top = 0; var pre_bg;var pre_layer;


  $(function(){
    pre_layer = $(".preview-layer");
    pre_bg = $(".preview-bg");
    pre_bg.on("click",function(){
      pre_layer.hide();
    });

  });
  function pre(url){
    updatePreviewHtml(url);
    pre_layer.show();
    resetPrePhoneCss();
    return false;
  }
  function updatePreviewHtml(url){
    var ifr_document = document.getElementById("preview-html").contentWindow.document;
    //设置正文
    if(ifr_document){
      var content_str = $("textarea").val();
      var ifr_content = $(ifr_document).find(".article-content");
      if (!url){
        ifr_content.html(content_str);
        return;
      }
      ifr_content.load(url, function () {

      })
    }
  }

  //重置预览手机页面的CSS
  function resetPrePhoneCss(){
    pos_left = $(window).width() / 2 - pre_phone.width() / 2;
    pos_top = $(window).height() / 2 - pre_phone.height() / 2;
    css_str = {
      left:pos_left + "px",
      top:pos_top + "px"
    }
    pre_phone.css(css_str);
  }

  $(window).resize(resetPrePhoneCss);
</script>
<jsp:include page="/WEB-INF/views/commons/show_message.jsp"/>
<div class="content-header">
	<h1>${node.name}（文章） - <s:message code="list"/> <small>(<s:message code="totalElements" arguments="${pagedList.totalElements}"/>)</small></h1>
</div>
<div class="content">
	<div class="box box-primary">
		<div class="box-body table-responsive">
			<form id="searchForm" action="infolist.do" method="get" class="form-inline ls-search">
				<div class="form-group">
				  <label for="search_CONTAIN_detail.title"><s:message code="info.title"/></label>
				  <input class="form-control input-sm" type="text" id="search_CONTAIN_detail.title" name="search_CONTAIN_detail.title" value="${requestScope['search_CONTAIN_detail.title'][0]}" style="width:150px;"/>
				</div>
				<div class="form-group">
				  <label for="search_CONTAIN_JinfoSpecials.Jspecial.title"><s:message code="info.specials"/></label>
				  <input class="form-control input-sm" type="text" id="search_CONTAIN_JinfoSpecials.Jspecial.title" name="search_CONTAIN_JinfoSpecials.Jspecial.title" value="${requestScope['search_CONTAIN_JinfoSpecials.Jspecial.title'][0]}" style="width:150px;"/>
				</div>
				<div class="form-group">
				  <label for="search_CONTAIN_JinfoTags.Jtag.name"><s:message code="info.tagKeywords"/></label>
				  <input class="form-control input-sm" type="text" id="search_CONTAIN_JinfoTags.Jtag.name" name="search_CONTAIN_JinfoTags.Jtag.name" value="${requestScope['search_CONTAIN_JinfoTags.Jtag.name'][0]}" style="width:100px;"/>
				</div>
				<div class="form-group">
				  <label for="search_EQ_creator.username"><s:message code="info.creator"/></label>
				  <input class="form-control input-sm" type="text" id="search_EQ_creator.username" name="search_EQ_creator.username" value="${requestScope['search_EQ_creator.username'][0]}" style="width:100px;"/>
				</div>
				<div class="form-group">
				  <label for="search_EQ_detail.author"><s:message code="info.author"/></label>
				  <input class="form-control input-sm" type="text" id="search_EQ_detail.author" name="search_EQ_detail.author" value="${requestScope['search_EQ_detail.author'][0]}" style="width:100px;"/>
				</div>
				<div class="form-group">
				  <label for="search_GTE_publishDate_Date"><s:message code="beginTime"/></label>
				  <input class="form-control input-sm" type="text" id="search_GTE_publishDate_Date" name="search_GTE_publishDate_Date" value="${search_GTE_publishDate_Date[0]}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" style="width:100px;"/>
				</div>
				<div class="form-group">
				  <label for="search_LTE_publishDate_Date"><s:message code="endTime"/></label>
				  <input class="form-control input-sm" type="text" id="search_LTE_publishDate_Date" name="search_LTE_publishDate_Date" value="${search_LTE_publishDate_Date[0]}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" style="width:100px;"/>
				</div>
				<div class="form-group">
				  <label for="search_EQ_priority"><s:message code="info.priority"/></label>
			  	<select class="form-control input-sm" id="search_EQ_priority" name="search_EQ_priority">
			  		<option value=""><s:message code="allSelect"/></option>
			  		<c:forEach var="i" begin="0" end="100">
			  		<c:set var="istr">${i}</c:set>
			  		<option<c:if test="${istr eq search_EQ_priority[0]}"> selected="selected"</c:if>>${i}</option>
			  		</c:forEach>
		  		</select>
				</div>
				<div class="form-group">
				  <label for="search_EQ_JinfoAttrs.Jattribute.id"><s:message code="info.attributes"/></label>
			  	<select class="form-control input-sm" id="search_EQ_JinfoAttrs.Jattribute.id" name="search_EQ_JinfoAttrs.Jattribute.id">
			  		<option value=""><s:message code="allSelect"/></option>
			  		<c:forEach var="attr" items="${attributeList}">
			  		<c:set var="idstr">${attr.id}</c:set>
			  		<option value="${attr.id}"<c:if test="${idstr eq requestScope['search_EQ_JinfoAttrs.Jattribute.id'][0]}"> selected="selected"</c:if>>${attr.name}</option>
			  		</c:forEach>
  				</select>
				</div>
				<div class="form-group">
				  <label for="queryInfoPermType"><s:message code="role.infoPermType"/></label>
			  	<select class="form-control input-sm" id="queryInfoPermType" name="queryInfoPermType">
			  		<option value=""><s:message code="allSelect"/></option>
			  		<option value="2"<c:if test="${queryInfoPermType eq '2'}"> selected="selected"</c:if>><s:message code="role.infoPermType.2"/></option>
			  		<option value="3"<c:if test="${queryInfoPermType eq '3'}"> selected="selected"</c:if>><s:message code="role.infoPermType.3"/></option>
		  		</select>
				</div>
			  <button class="btn btn-default btn-sm" type="submit"><s:message code="search"/></button>
				<f:hidden name="queryNodeId" value="${queryNodeId}"/>
				<f:hidden name="queryNodeType" value="${queryNodeType}"/>
				<f:hidden id="queryStatus" name="queryStatus" value="${queryStatus}"/>
                <f:hidden id="nodeFlag" name="nodeFlag" value="${nodeFlag}"/>
                <f:hidden  name="returnUrl" value="${returnUrl}"/>
			</form>
			<form method="post">
				<tags:search_params/>
				<f:hidden name="queryNodeId" value="${queryNodeId}"/>
				<f:hidden name="queryNodeType" value="${queryNodeType}"/>
				<f:hidden name="queryInfoPermType" value="${queryInfoPermType}"/>
				<f:hidden name="queryStatus" value="${queryStatus}"/>
                <f:hidden id="nodeFlag" name="nodeFlag" value="${nodeFlag}"/>
                <f:hidden  name="returnUrl" value="${returnUrl}"/>
                <f:hidden  id="pubCityNode" name="pubCityNode" value="1"/>
                <f:hidden id="isPubCity" value="${isPubCity}"/>
				<div class="btn-toolbar ls-btn-bar">
                    <div class="btn-group">
                        <shiro:hasPermission name="core:sinatv:generationTv01">
                            <button class="btn btn-default" type="button" onclick="$('#load').showLoading();location.href='/cmscp/core/generation/generationDataByNode.do?returnUrl=/cmscp/core/pub_center/infolist&queryNodeId=${queryNodeId}';">生成</button>
                        </shiro:hasPermission>
                    </div>
                    <div class="btn-group">
                        <shiro:hasPermission name="core:info:create01">
                            <button class="btn btn-default" type="button" onclick="location.href='speclist.do?targetNodeId=${queryNodeId}&tab=spec&queryNodeType=${queryNodeType}&queryInfoPermType=${queryInfoPermType}&queryStatus=${queryStatus}&returnUrl=core/publish_center/node_activity_choose_info&${searchstring}';">添加专题</button>
                        </shiro:hasPermission>
                    </div>
					<div class="btn-group">
						<shiro:hasPermission name="core:info:create01">
						<button class="btn btn-default" type="button" onclick="location.href='infocreate.do?queryNodeId=${queryNodeId}&queryNodeType=${queryNodeType}&queryInfoPermType=${queryInfoPermType}&queryStatus=${queryStatus}&${searchstring}';"><s:message code="create"/></button>
						</shiro:hasPermission>
					</div>
					<div class="btn-group">
						<shiro:hasPermission name="core:info:copy01">
						<button class="btn btn-default" type="button" onclick="return optSingle('#copy_opt_');"><s:message code="copy"/></button>
						</shiro:hasPermission>
					  <shiro:hasPermission name="core:info:edit01">
					  <button class="btn btn-default" type="button" onclick="return optSingle('#edit_opt_');"><s:message code="edit"/></button>
					  </shiro:hasPermission>
					  <shiro:hasPermission name="core:info:move_form01">
					  <button class="btn btn-default" type="button" onclick="return optMulti(this.form,'infomove_form.do');"><s:message code="move"/></button>
					  </shiro:hasPermission>
					</div>
					<div class="btn-group">
					  <shiro:hasPermission name="core:info:logic_delete01">
					  <button class="btn btn-default" type="button" onclick="return optMulti(this.form,'infologic_delete.do',confirmDelete);"><s:message code="delete"/></button>
					  </shiro:hasPermission>
					  <shiro:hasPermission name="core:info:delete01">
					  <button class="btn btn-default" type="button" onclick="return optDelete(this.form);"><s:message code="completelyDelete"/></button>
					  </shiro:hasPermission>
					  <shiro:hasPermission name="core:info:recall01">
					  <button class="btn btn-default" type="button" onclick="return optMulti(this.form,'inforecall.do');"><s:message code="info.recall"/></button>
					  </shiro:hasPermission>
					</div>
					<div class="btn-group">
						<shiro:hasPermission name="core:pub_center:infoaudit_pass01">
						<button class="btn btn-default" type="button" onclick="return optMulti(this.form,'infoaudit_pass.do');"><s:message code="info.auditPass"/></button>
						</shiro:hasPermission>
						<shiro:hasPermission name="core:pub_center:infoaudit_reject01">
						<button class="btn btn-default" type="button" onclick="return optMulti(this.form,'infoaudit_reject.do');"><s:message code="info.auditReject"/></button>
						</shiro:hasPermission>
						<shiro:hasPermission name="core:pub_center:infoaudit_return01">
						<button class="btn btn-default" type="button" onclick="return optMulti(this.form,'infoaudit_return.do');"><s:message code="info.auditReturn"/></button>
						</shiro:hasPermission>
					</div>
                    <%--<div class="btn-group">--%>
                        <%--<shiro:hasPermission name="core:pub_center:infoaudit_pass01">--%>
                            <%--<button class="btn btn-default" type="button" onclick="pubCity(this.form,'infoaudit_pass.do');">发布到市州圈</button>--%>
                        <%--</shiro:hasPermission>--%>

                    <%--</div>--%>
					<%--<div class="btn-group">--%>
					  <%--<shiro:hasPermission name="core:info:mass_weixin_form">--%>
					  <%--<button class="btn btn-default" type="button" onclick="return optMulti(this.form,'mass_weixin_form.do');"><s:message code="info.massWeixin"/></button>--%>
					  <%--</shiro:hasPermission>--%>
					<%--</div>--%>
				</div>
				<ul id="tabs" class="tabs list-unstyled">
					<shiro:hasPermission name="core:pub_center:infolistClums">
					<li<c:if test="${empty queryStatus}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('');$('#searchForm').submit();"><s:message code="info.status.all"/></a></li>
					</shiro:hasPermission>
						<shiro:hasPermission name="core:pub_center:audit01">
						<li<c:if test="${queryStatus eq 'pending'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('pending');$('#searchForm').submit();"><s:message code="info.status.pending"/></a></li>
						<shiro:hasPermission name="core:pub_center:back01">
						</shiro:hasPermission>
						<li<c:if test="${queryStatus eq 'notpassed'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('notpassed');$('#searchForm').submit();"><s:message code="info.status.notpassed"/></a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="core:pub_center:auditz01">
						<li<c:if test="${queryStatus eq '1'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('1');$('#searchForm').submit();"><s:message code="info.status.1"/></a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="core:pub_center:released01">
						<li<c:if test="${queryStatus eq 'F'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('F');$('#searchForm').submit();"><s:message code="info.status.F"/></a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="core:pub_center:published01">
						<li<c:if test="${queryStatus eq 'A'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('A');$('#searchForm').submit();"><s:message code="info.status.A"/></a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="core:pub_center:expired01">
						<li<c:if test="${queryStatus eq 'G'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('G');$('#searchForm').submit();"><s:message code="info.status.G"/></a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="core:pub_center:draft01">
						<li<c:if test="${queryStatus eq 'B'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('B');$('#searchForm').submit();"><s:message code="info.status.B"/></a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="core:pub_center:rejection01">
						<li<c:if test="${queryStatus eq 'D'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('D');$('#searchForm').submit();"><s:message code="info.status.D"/></a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="core:pub_center:contribute01">
						<li<c:if test="${queryStatus eq 'C'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('C');$('#searchForm').submit();"><s:message code="info.status.C"/></a></li>
						</shiro:hasPermission>
						<shiro:hasPermission name="core:pub_center:collect01">
						<li<c:if test="${queryStatus eq 'E'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('E');$('#searchForm').submit();"><s:message code="info.status.E"/></a></li>
						</shiro:hasPermission>
					<%--
					<li<c:if test="${queryStatus eq 'Z'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('Z');$('#searchForm').submit();"><s:message code="info.status.Z"/></a></li>
					 --%>
					<shiro:hasPermission name="core:pub_center:recycle01">
					<li<c:if test="${queryStatus eq 'X'}"> class="active"</c:if>><a href="javascript:void(0);" onclick="$('#queryStatus').val('X');$('#searchForm').submit();"><s:message code="info.status.X"/></a></li>
					</shiro:hasPermission>
				</ul>
				<table id="pagedTable" class="table table-condensed table-bordered table-hover ls-tb">
				  <thead id="sortHead" pagesort="<c:out value='${page_sort[0]}' />" pagedir="${page_sort_dir[0]}" pageurl="infolist.do?page_sort={0}&page_sort_dir={1}&queryNodeId=${queryNodeId}&queryNodeType=${queryNodeType}&queryInfoPermType=${queryInfoPermType}&queryStatus=${queryStatus}&${searchstringnosort}">
				  <tr class="ls_table_th">
				    <th width="25"><input type="checkbox" onclick="Cms.check('ids',this.checked);"/></th>
				    <th width="30" class="ls-th-sort"><span class="ls-sort" pagesort="id">ID</span></th>
				    <th><span><s:message code="info.title"/></span></th>
                    <th>类型</th>
				    <th class="ls-th-sort"><span class="ls-sort" pagesort="publishDate"><s:message code="info.publishDate"/></span></th>
				    <th>作者</th>
				    <th class="ls-th-sort"><span class="ls-sort" pagesort="priority"><s:message code="info.priority"/></span><span style="color: red"><br/>(0-100整数，数值大，优先级高)</span></th>
				    <%--<th class="ls-th-sort"><span class="ls-sort" pagesort="views"><s:message code="info.views"/></span></th>--%>
				    <th>预览链接</th>
                    <th class="ls-th-sort"><span class="ls-sort" pagesort="status"><s:message code="info.status"/></span></th>
                    <th width="225"><s:message code="operate"/></th>
				  </tr>
				  </thead>
				  <tbody>
				  <c:forEach var="bean" varStatus="status" items="${pagedList.content}">
				  <tr>
				    <td><input type="checkbox" name="ids" value="${bean.id}"/></td>
				    <td><c:out value="${bean.id}"/></td>
				    <td>
				    	<div>
                            <c:choose>
                                <c:when test="${bean.status eq 'A'}">
                                    <a onclick="pre('<c:out value='${bean.sharedUrl}'/>')" title="<c:out value='${bean.title}'/>"><c:out value="${fnx:substringx_sis(bean.title,30,'...')}"/></a>
                                </c:when>
                                <c:otherwise>
                                    <a onclick="pre('<c:out value='${bean.preUrl}'/>')" title="<c:out value='${bean.title}'/>"><c:out value="${fnx:substringx_sis(bean.title,30,'...')}"/></a>
                                </c:otherwise>
                            </c:choose>
                        </div>
				    	<div>
                            [<span style='color:#c8103d;'>${bean.model.name}</span>]
                            &nbsp;[<span style="color:blue;"><c:out value="${bean.node.displayName}"/></span>]
				    		<c:if test="${fn:length(bean.infoAttrs) gt 0}">&nbsp;[<span style="color:#e66100;font-weight:bold;"><c:forEach var="ia" items="${bean.infoAttrs}" varStatus="status">${ia.attribute.name}<c:if test="${!status.last}"> </c:if></c:forEach></span>]</c:if>
				    	</div>
                        <div>[<span style="color:blue;"><c:out value="真实点击量：${bean.realviews}"/></span>]</div>
				    </td>
                    <td>
                        <c:if test="${bean.newsType eq 4}">
                            <span style="color: red">专题</span>
                        </c:if>
                        <c:if test="${bean.newsType ne 4}">
                            <c:out value="新闻"/>
                        </c:if>
                    </td>
                  <td align="right" style="text-align: center">
                      <input class="form-control input-sm" type="text" id="pubTime_${bean.id}"   value="<fmt:formatDate value="${bean.publishDate}" pattern="yyyy-MM-dd HH:mm:ss"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});" style="    width: 200px;" />
                      <button class="btn btn-default" type="button" onclick="updatePubTime(${bean.id})">保存</button>
                  </td>
                    <td>
                          <div>
                              <span style="color:blue;"><c:out value="${bean.creator.username}"/></span> &nbsp;
                              [<span style="color:blue;"><c:out value="${bean.org.displayName}"/></span>]
                              <c:if test="${!empty bean.author}">&nbsp; <span style="color:blue;"><c:out value="${bean.author}"/></span></c:if>
                          </div>
                    </td>
				    <td align="right" style="text-align: center"><f:text class="form-control input-sm" name="priority" id="${bean.id}" style="    width: 60px;    display: -webkit-inline-box;" maxlength="9" AUTOCOMPLETE="OFF" value="${bean.priority}"/>
                        <button class="btn btn-default" type="button" onclick="updatePriority(${bean.id})">保存</button>

                    </td>
                    <td>
                        <c:choose>
                            <c:when test="${bean.status eq 'A'}">
                                <f:text class="form-control input-sm" style="    width: 230px;    display: -webkit-inline-box;"  value="http://192.168.81.70:8080${bean.sharedUrl}" />
                            </c:when>
                            <c:otherwise>
                                <f:text class="form-control input-sm" style="    width: 230px;    display: -webkit-inline-box;"  value="http://cmsscgc.sctv.com${bean.preUrl}" />
                            </c:otherwise>
                        </c:choose>
                    </td>
				    <%--<td align="right"><c:out value="${bean.bufferViews}"/></td>--%>
				    <td align="center">
				      <div>
					    	<c:choose>
					    	<c:when test="${bean.status eq '1'}">
					    		${bean.stepName}
					    	</c:when>    	
					    	<c:when test="${bean.status eq 'A'}">
					    		<a href="${bean.url}" target="_blank"><s:message code="info.status.${bean.status}"/></a>
					    	</c:when>
					    	<c:otherwise>
					    		<s:message code="info.status.${bean.status}"/>
					    	</c:otherwise>
					    	</c:choose>
				    	</div>
				    	<div>
				        html:
				        <c:set var="makeHtmlPerm" value="${false}"/>
				        <shiro:hasPermission name="core:info:make_html">        
				        <c:set var="makeHtmlPerm" value="${true}"/>
				        </shiro:hasPermission>
				        <c:choose>
				        <c:when test="${makeHtmlPerm}">
				        <a href="infomake_html.do?ids=${bean.id}&queryNodeId=${queryNodeId}&queryNodeType=${queryNodeType}&queryInfoPermType=${queryInfoPermType}&queryStatus=${queryStatus}&${searchstring}" class="ls-opt" style="<c:if test="${bean.htmlStatus eq '2' || bean.htmlStatus eq '3' || bean.htmlStatus eq '4'}">color:red;</c:if>">
				          <s:message code="node.htmlStatus.${bean.htmlStatus}"/>
				        </a>        
				        </c:when>
				        <c:otherwise>
				        <span style="<c:if test="${bean.htmlStatus eq '2' || bean.htmlStatus eq '3' || bean.htmlStatus eq '4'}">color:red;</c:if>">
				          <s:message code="node.htmlStatus.${bean.htmlStatus}"/>
				        </span>
				        </c:otherwise>
				        </c:choose>
				    	</div>
				    </td>
                    <td align="center">
                        <c:if test="${bean.newsType ne 4}">
                            <shiro:hasPermission name="core:info:copy01">
                                <a id="copy_opt_${bean.id}" href="infocreate.do?id=${bean.id}&queryNodeId=${queryNodeId}&queryNodeType=${queryNodeType}&queryInfoPermType=${queryInfoPermType}&queryStatus=${queryStatus}&${searchstring}" class="ls-opt"><s:message code="copy"/></a>
                            </shiro:hasPermission>
                            <shiro:hasPermission name="core:info:edit01">
                                <a id="edit_opt_${bean.id}" href="infoedit.do?id=${bean.id}&queryNodeId=${queryNodeId}&queryNodeType=${queryNodeType}&queryInfoPermType=${queryInfoPermType}&queryStatus=${queryStatus}&position=${pagedList.number*pagedList.size+status.index}&${searchstring}" class="ls-opt"><s:message code="edit"/></a>
                            </shiro:hasPermission>
                        </c:if>

                          <%--<shiro:hasPermission name="core:info:ref">--%>
                              <%--<a id="edit_opt_${bean.id}" href="inforef.do?id=${bean.id}&queryNodeId=${queryNodeId}&queryNodeType=${queryNodeType}&queryInfoPermType=${queryInfoPermType}&queryStatus=${queryStatus}&position=${pagedList.number*pagedList.size+status.index}&${searchstring}" class="ls-opt">引用</a>--%>
                          <%--</shiro:hasPermission>--%>


                          <shiro:hasPermission name="core:info:logic_delete01">
                              <c:choose>
                                  <c:when test="${bean.auditPerm}">
                                      <a href="infologic_delete.do?ids=${bean.id}&queryNodeId=${queryNodeId}&queryNodeType=${queryNodeType}&queryInfoPermType=${queryInfoPermType}&queryStatus=${queryStatus}&${searchstring}" onclick="return confirmDelete();" class="ls-opt"><s:message code="delete"/></a>
                                  </c:when>
                                  <c:otherwise>
                                      <span class="disabled"><s:message code="delete"/></span>
                                  </c:otherwise>
                              </c:choose>
                          </shiro:hasPermission>
                          <shiro:hasPermission name="core:info:delete01">
                              <c:choose>
                                  <c:when test="${bean.auditPerm}">
                                      <a href="infodelete.do?ids=${bean.id}&queryNodeId=${queryNodeId}&queryNodeType=${queryNodeType}&queryInfoPermType=${queryInfoPermType}&queryStatus=${queryStatus}&${searchstring}" onclick="return confirmDelete();" class="ls-opt"><s:message code="completelyDelete"/></a>
                                  </c:when>
                                  <c:otherwise>
                                      <span class="disabled"><s:message code="completelyDelete"/></span>
                                  </c:otherwise>
                              </c:choose>
                          </shiro:hasPermission>
                      </td>
				  </tr>
				  </c:forEach>
				  </tbody>
				</table>
				<c:if test="${fn:length(pagedList.content) le 0}"> 
				<div class="ls-norecord"><s:message code="recordNotFound"/></div>
				</c:if>
			</form>
			<form action="infolist.do" method="get" class="ls-page">
				<tags:search_params excludePage="true"/>
				<f:hidden name="queryNodeId" value="${queryNodeId}"/>
				<f:hidden name="queryNodeType" value="${queryNodeType}"/>
				<f:hidden name="queryInfoPermType" value="${queryInfoPermType}"/>
				<f:hidden id="queryStatus" name="queryStatus" value="${queryStatus}"/>
				<f:hidden id="nodeFlag" name="nodeFlag" value="${nodeFlag}"/>
                <f:hidden  name="returnUrl" value="${returnUrl}"/>
			  <tags:pagination pagedList="${pagedList}"/>
			</form>
		</div>
	</div>
</div>
</body>
</html>